<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例6</title>
    <script src="jquery.js"></script>
    <script>
        $(function (){
            $("li:not(li:eq(2))").css("color","red")
        })
    </script>
</head>
<body>
    <ul>
        <li>list item 1</li>
        <li>list item 2</li>
        <li>list item 3</li>
        <li>list item 4</li>
        <li>list item 5</li>
    </ul>
</body>
</html>